package Game;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class GameController implements ActionListener {
	private GameModel model;
	
	public GameController(GameModel model) {
		this.model = model;
	}
	
	public void actionPerformed(ActionEvent event) {
		String eventType = event.getActionCommand();
		Object eventValue = event.getSource();
		int eventID = event.getID();
		
		switch (eventType) {
			case "jump":
				model.playerJumped();
				break;
		}
	}
	
	public GameModel getModel() {
		return model;
	}

}
